<template>
  <div>
	  <SideBar props_active_id='item_1'></SideBar>
	  <GoodsBlock></GoodsBlock>
	  <WarehoseBlock></WarehoseBlock>
	  <UsereBlock></UsereBlock>
	  <DelBlock></DelBlock>
	  
	  <div style="margin-bottom: 60px;width: 100%;"></div>
  </div>
</template>

<script>
// @ is an alias to /src
// import BottomTab from '../components/bottom_tab/bottom_tab.vue'
import SideBar from "../components/admin_block/side_bar.vue"
import GoodsBlock from "../components/admin_block/goods_block.vue"
import WarehoseBlock from "../components/admin_block/warehouse_block.vue"
import UsereBlock from "../components/admin_block/user_block.vue"
import DelBlock from "../components/admin_block/delet_block.vue"
import Cookies from 'js-cookie'
export default {
  name: 'Home',
  components: {
    SideBar,
	GoodsBlock,
	WarehoseBlock,UsereBlock,DelBlock
  },
  mounted() {
  
  	// console.log(this.$route.path)
  	
  	let duty = Cookies.get('duty')
  	
  	if(duty.indexOf('SUPER') == -1){
  		this.$router.push('/Inventory')
  		
  		// this.$message({
  		// 	message: '没有权限制访问该页面' + '!!!',
  		// 	type: 'error'
  		// })
		
  	}
	
  },
}
</script>
